]> dgit.raspbian.org Git - gnome-shell.git/commit
st/image-content: Implement GIcon interface
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 30 Jun 2020 02:12:16 +0000 (04:12 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 1 Jul 2020 10:42:57 +0000 (12:42 +0200)
commit770231c2d7a0296ea4819ac9ba358e2d0cb371fa
tree15fe74569c12917da8c9292d66faf9bb62e94ac9
parentecdf62d63eee50c7655e82bf16da157c998e4529
st/image-content: Implement GIcon interface

On the one hand, this is a bit of a stretch: StImageContent is what
we create from GIcons.

But on the other hand, there's some justification: StImageContent does
represent an image (and likely icon) after all, and there's some
precedent with GdkPixbuf.

In the end as we don't care about serialization or loading from other
API, we can go with a very crude implementation that allows us to
pass out a content as GIcon and use it directly when "loading" it.

We will use that soon to represent X11 window icons as GIcons, which
in turn will allow us to unify app icon handling.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1342
src/st/st-image-content.c
src/st/st-texture-cache.c